<template>
  <a-config-provider :locale="locale">
    <router-view></router-view>
  </a-config-provider>
</template>
<script setup name="App">
import zh from 'ant-design-vue/es/locale/zh_CN'
import en from 'ant-design-vue/es/locale/en_US'
import { useLangStore } from '@/store/lang'
const { lang } = storeToRefs(useLangStore())
const langObj = {
  zh,
  en
}
const locale = computed(() => langObj[lang.value])
</script>
<style></style>
